const { contextBridge, ipcRenderer } = require('electron')

contextBridge.exposeInMainWorld('creatRouteID_API', {
    getFileName: () => ipcRenderer.invoke('getFileName'),
    getRouteInfo: () => ipcRenderer.invoke('getRouteInfo'),
    saveRouteID_pre: (routeId) => ipcRenderer.send('saveRouteID', routeId),
})